'''
Created on Mar 17, 2016

@author: grind
'''

if __name__ == '__main__':
    basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'}
    print(basket)
    
    print('orange' in basket)
    
    a = set('abracadabra')
    print(a)
    
    # 列表推导式
    a = {x for x in 'abracadabra' if x not in 'abc'}
    print(a)